
<!DOCTYPE HTML>
<html lang="zh" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>普通蓝牙秤-自主管理蓝牙 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="kitchen_scale.html" />
    
    
    <link rel="prev" href="ble_scale.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../guide/android.html">
            
                <a href="../guide/android.html">
            
                    
                    android
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../guide/ios.html">
            
                <a href="../guide/ios.html">
            
                    
                    ios
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    工作流程
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="ble_scale.html">
            
                <a href="ble_scale.html">
            
                    
                    普通蓝牙秤
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.2" data-path="ble_scale_custom_connect.html">
            
                <a href="ble_scale_custom_connect.html">
            
                    
                    普通蓝牙秤-自主管理蓝牙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="kitchen_scale.html">
            
                <a href="kitchen_scale.html">
            
                    
                    厨房秤
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="ble_user_scale.html">
            
                <a href="ble_user_scale.html">
            
                    
                    用户秤
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="ble_ruler.html">
            
                <a href="ble_ruler.html">
            
                    
                    蓝牙围度尺
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    API
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html">
            
                    
                    QNBleApi
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#initsdk">
            
                    
                    initSdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#getcursystemblestate">
            
                    
                    getCurSystemBleState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.3" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setsysblestatelistener">
            
                    
                    setSysBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.4" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setbledevicediscoverylistener">
            
                    
                    setBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.5" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setbleconnectionchangelistener">
            
                    
                    setBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.6" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setdataListener">
            
                    
                    setDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.7" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setblekitchenlistener">
            
                    
                    setBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.8" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setloglistener">
            
                    
                    setLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.9" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#startbledevicediscovery">
            
                    
                    startBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.10" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#stopbledevicediscovery">
            
                    
                    stopBleDeviceDiscovery
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.11" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#connectdevice">
            
                    
                    connectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.12" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#connectuserscaledevice">
            
                    
                    connectUserScaleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.13" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#connectblekitchendevice">
            
                    
                    connectBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.14" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setblekitchendeviceconfig">
            
                    
                    setBleKitchenDeviceConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.15" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#disconnectdevice">
            
                    
                    disconnectDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.16" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#getconfig">
            
                    
                    getConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.17" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#convertweightwithtargetunit">
            
                    
                    convertWeightWithTargetUnit
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.18" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#builddevice">
            
                    
                    buildDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.19" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#buildprotocolhandler">
            
                    
                    buildProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.20" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#generatescaledata">
            
                    
                    generateScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.21" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#physiquecalculation">
            
                    
                    physiqueCalculation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.22" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#switchuserscaleuser">
            
                    
                    switchUserScaleUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.23" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#updateuserscaleidentifyweight">
            
                    
                    updateUserScaleIdentifyWeight
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.24" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#deletescaleusers">
            
                    
                    deleteScaleUsers
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.25" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#setblerulerlistener">
            
                    
                    setBleRulerListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.26" data-path="../api/QNBleApi.html">
            
                <a href="../api/QNBleApi.html#connectrulerdevice">
            
                    
                    connectRulerDevice
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../api/QNUser.html">
            
                <a href="../api/QNUser.html">
            
                    
                    QNUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../api/QNScaleData.html">
            
                <a href="../api/QNScaleData.html">
            
                    
                    QNScaleData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../api/QNScaleStoreData.html">
            
                <a href="../api/QNScaleStoreData.html">
            
                    
                    QNScaleStoreData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../api/QNScaleItemData.html">
            
                <a href="../api/QNScaleItemData.html">
            
                    
                    QNScaleItemData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../api/QNBleDevice.html">
            
                <a href="../api/QNBleDevice.html">
            
                    
                    QNBleDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../api/QNBleBroadcastDevice.html">
            
                <a href="../api/QNBleBroadcastDevice.html">
            
                    
                    QNBleBroadcastDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../api/QNBleKitchenDevice.html">
            
                <a href="../api/QNBleKitchenDevice.html">
            
                    
                    QNBleKitchenDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../api/QNConfig.html">
            
                <a href="../api/QNConfig.html">
            
                    
                    QNConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../api/QNWiFiConfig.html">
            
                <a href="../api/QNWiFiConfig.html">
            
                    
                    QNWiFiConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../api/QNUserScaleConfig.html">
            
                <a href="../api/QNUserScaleConfig.html">
            
                    
                    QNUserScaleConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../api/QNBleKitchenConfig.html">
            
                <a href="../api/QNBleKitchenConfig.html">
            
                    
                    QNBleKitchenConfig
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="../api/QNBleStateListener.html">
            
                <a href="../api/QNBleStateListener.html">
            
                    
                    QNBleStateListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="../api/QNBleDeviceDiscoveryListener.html">
            
                <a href="../api/QNBleDeviceDiscoveryListener.html">
            
                    
                    QNBleDeviceDiscoveryListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="../api/QNBleConnectionChangeListener.html">
            
                <a href="../api/QNBleConnectionChangeListener.html">
            
                    
                    QNBleConnectionChangeListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="../api/QNScaleDataListener.html">
            
                <a href="../api/QNScaleDataListener.html">
            
                    
                    QNScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.17" data-path="../api/QNUserScaleDataListener.html">
            
                <a href="../api/QNUserScaleDataListener.html">
            
                    
                    QNUserScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.18" data-path="../api/QNBleKitchenListener.html">
            
                <a href="../api/QNBleKitchenListener.html">
            
                    
                    QNBleKitchenListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.19" data-path="../api/QNLogListener.html">
            
                <a href="../api/QNLogListener.html">
            
                    
                    QNLogListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.20" data-path="../api/QNResultCallback.html">
            
                <a href="../api/QNResultCallback.html">
            
                    
                    QNResultCallback
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.21" data-path="../api/QNShareData.html">
            
                <a href="../api/QNShareData.html">
            
                    
                    QNShareData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.22" data-path="../api/QNUtils.html">
            
                <a href="../api/QNUtils.html">
            
                    
                    QNUtils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.23" data-path="../api/QNBleProtocolHandler.html">
            
                <a href="../api/QNBleProtocolHandler.html">
            
                    
                    QNBleProtocolHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.24" data-path="../api/QNBleProtocolDelegate.html">
            
                <a href="../api/QNBleProtocolDelegate.html">
            
                    
                    QNBleProtocolDelegate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.25" data-path="../api/QNWspScaleDataListener.html">
            
                <a href="../api/QNWspScaleDataListener.html">
            
                    
                    QNWspScaleDataListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.26" data-path="../api/QNBleRulerDevice.html">
            
                <a href="../api/QNBleRulerDevice.html">
            
                    
                    QNBleRulerDevice
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.27" data-path="../api/QNBleRulerData.html">
            
                <a href="../api/QNBleRulerData.html">
            
                    
                    QNBleRulerData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.28" data-path="../api/QNBleRulerListener.html">
            
                <a href="../api/QNBleRulerListener.html">
            
                    
                    QNBleRulerListener
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    附表
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../attouched_list/faq.html">
            
                <a href="../attouched_list/faq.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../attouched_list/body_indexes.html">
            
                <a href="../attouched_list/body_indexes.html">
            
                    
                    身体指标常量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../attouched_list/device_type.html">
            
                <a href="../attouched_list/device_type.html">
            
                    
                    设备类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../attouched_list/display_module_type.html">
            
                <a href="../attouched_list/display_module_type.html">
            
                    
                    显示模块类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../attouched_list/body_shape.html">
            
                <a href="../attouched_list/body_shape.html">
            
                    
                    体型对照表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../attouched_list/error_code.html">
            
                <a href="../attouched_list/error_code.html">
            
                    
                    错误码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../attouched_list/scan_error.html">
            
                <a href="../attouched_list/scan_error.html">
            
                    
                    扫描错误码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../attouched_list/scale_state.html">
            
                <a href="../attouched_list/scale_state.html">
            
                    
                    秤状态定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../attouched_list/scale_event.html">
            
                <a href="../attouched_list/scale_event.html">
            
                    
                    秤事件定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../attouched_list/area_type.html">
            
                <a href="../attouched_list/area_type.html">
            
                    
                    区域类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../attouched_list/test_list.html">
            
                <a href="../attouched_list/test_list.html">
            
                    
                    测试用例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" data-path="../attouched_list/policy.html">
            
                <a href="../attouched_list/policy.html">
            
                    
                    隐私协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.13" data-path="../history/history.html">
            
                <a href="../history/history.html">
            
                    
                    更新日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >普通蓝牙秤-自主管理蓝牙</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x666E;&#x901A;&#x84DD;&#x7259;&#x79E4;-&#x81EA;&#x4E3B;&#x7BA1;&#x7406;&#x84DD;&#x7259;">&#x666E;&#x901A;&#x84DD;&#x7259;&#x79E4;-&#x81EA;&#x4E3B;&#x7BA1;&#x7406;&#x84DD;&#x7259;</h1>
<p>&#x8BE5;&#x7BC7;&#x7AE0;&#x662F;&#x7ED9;&#x5BF9;&#x84DD;&#x7259;&#x6709;&#x4E00;&#x5B9A;&#x4E86;&#x89E3;&#xFF0C;&#x5E76;&#x5728;APP&#x4E2D;&#x6709;&#x81EA;&#x5DF1;&#x84DD;&#x7259;&#x6846;&#x67B6;&#x7684;&#x7528;&#x6237;&#x4F7F;&#x7528; </p>
<blockquote>
<p>&#x5982;&#x679C;&#x5BF9;&#x84DD;&#x7259;&#x4E0D;&#x719F;&#x6089;&#xFF0C;&#x6216;&#x8005;&#x6CA1;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x84DD;&#x7259;&#x6846;&#x67B6;&#xFF0C;&#x4E0D;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x8BE5;&#x79CD;&#x65B9;&#x5F0F;&#x63A5;&#x5165;&#xFF0C;&#x4E0D;&#x7136;&#x4F1A;&#x589E;&#x52A0;&#x63A5;&#x5165;&#x7684;&#x6210;&#x672C;</p>
</blockquote>
<iframe src="https://mermaidjs.github.io/mermaid-live-editor/#/view/eyJjb2RlIjoic2VxdWVuY2VEaWFncmFtIFxucGFydGljaXBhbnQgc2NhbGUgYXMg56ekXG5wYXJ0aWNpcGFudCBhcHAgYXMgQVBQXG5wYXJ0aWNpcGFudCBzZGsgYXMgU0RLXG5cbnNjYWxlLS0-PnNjYWxlOiAg5Lqu5bGP5Y-R6YCB5bm_5pKtXG5hcHAtLT4-YXBwOiAg5omr5o-P5ZGo5Zu05bm_5pKtXG5hcHAtPj5zY2FsZTogIOaJq-aPj-WIsOiuvuWkh1xuYXBwLT4-c2RrOiDosIPnlKhidWlsZERldmljZVxuc2RrLT4-YXBwOiDmnoTlu7pRTkJsZURldmljZVxuYXBwLS0-PmFwcDog5Yik5pat5piv5ZCm5Li655uu5qCH6K6-5aSHXG5hcHAtPj5zZGs6IOiwg-eUqGJ1aWxkUHJvdG9jb2xIYW5kbGVyXG5zZGstPj5hcHA6IOWbnuS8oFFOQmxlUHJvdG90b2xIYW5kbGVyXG5hcHAtPj5zY2FsZTog6L-b6KGM6JOd54mZ6L-e5o6lXG5zY2FsZS0-PmFwcDog6L-e5o6l5oiQ5YqfXG5hcHAtLT4-YXBwOuWPkeeOsOacjeWKoVxuYXBwLS0-PmFwcDog5L2_6IO954m55b6B5YC8XG5hcHAtPj5zZGs66LCD55SoUU5CbGVQcm90b3RvbEhhbmRsZXIucHJlcGFyZVxuc2RrLS0-PnNkazog5Y2P6K6u5aSE55CG57G75Yid5aeL5YyW5a6M5oiQXG5zY2FsZS0-PmFwcDog5Y-R6YCB6JOd54mZ5pWw5o2uXG5hcHAtPj5zZGs6IOiwg-eUqG9uR2V0QmxlRGF0YVxuc2RrLS0-PnNkazog5YiG5p6Q5pWw5o2uXG5zZGstPj5hcHA6IOWbnuS8oOaVsOaNrlxuc2NhbGUtLT4-c2RrOiDmtYvph4_lrozmiJBcbnNkay0-PmFwcDrorqHnrpflubblm57kvKDnqLPlrprmlbDmja5cbnNjYWxlLT4-YXBwOiDmlq3lvIDov57mjqVcbmFwcC0tPj5hcHA6IOWkhOeQhuWSjOaYvuekuuaVsOaNrlxuXG4iLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9fQ" frameborder="0" width="750" height="1200"></iframe>

<h2 id="&#x4E00;&#x3001;&#x542F;&#x52A8;&#x84DD;&#x7259;&#x626B;&#x63CF;">&#x4E00;&#x3001;&#x542F;&#x52A8;&#x84DD;&#x7259;&#x626B;&#x63CF;</h2>
<p>&#x5BA2;&#x6237;&#x81EA;&#x5DF1;&#x8FDB;&#x884C;&#x84DD;&#x7259;&#x626B;&#x63CF;&#x7684;&#x542F;&#x52A8;&#x548C;&#x505C;&#x6B62;&#xFF0C;&#x628A;&#x626B;&#x63CF;&#x5230;&#x7684;&#x8BBE;&#x5907;&#x4FE1;&#x606F;&#x4F20;&#x7ED9;&#x6211;&#x4EEC;SDK&#xFF08;&#x8C03;&#x7528;<a href="../api/QNBleApi.html#builddevice">QNBleApi.buildDevice</a>&#xFF09;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x5C5E;&#x4E8E;&#x6211;&#x4EEC;&#x7684;&#x8BBE;&#x5907;&#xFF0C;SDK&#x5C31;&#x4F1A;&#x6784;&#x5EFA;<a href="../api/QNBleDevice.html">QNBleDevice</a>&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x662F;&#x6211;&#x4EEC;&#x7684;&#x8BBE;&#x5907;&#xFF0C;&#x5219;&#x4F1A;&#x8FD4;&#x56DE;null/nil&#x3002;</p>
<blockquote>
<p>&#x901A;&#x5E38;&#x6211;&#x4EEC;&#x8BBE;&#x5907;&#x7684;&#x84DD;&#x7259;&#x540D;&#x4E3A;QN-Scale&#x6216;QN-Scale1&#xFF0C;&#x901A;&#x5E38;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BE5;&#x84DD;&#x7259;&#x540D;&#x6765;&#x8FC7;&#x6EE4;&#x6211;&#x4EEC;&#x7684;&#x4EA7;&#x54C1;
&#x83B7;&#x53D6;&#x5230;&#x76EE;&#x6807;&#x8BBE;&#x5907;&#x540E;&#xFF0C;&#x662F;&#x5426;&#x505C;&#x6B62;&#x626B;&#x63CF;&#x7531;APP&#x81EA;&#x884C;&#x51B3;&#x5B9A;&#x3002;&#x6211;&#x4EEC;&#x901A;&#x5E38;&#x5EFA;&#x8BAE;&#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#x4E4B;&#x524D;&#xFF0C;&#x6700;&#x597D;&#x628A;&#x84DD;&#x7259;&#x626B;&#x63CF;&#x7ED9;&#x505C;&#x6B62;&#x3002;</p>
</blockquote>
<h2 id="&#x4E8C;&#x3001;&#x521B;&#x5EFA;&#x84DD;&#x7259;&#x534F;&#x8BAE;&#x4EE3;&#x7406;&#x7C7B;">&#x4E8C;&#x3001;&#x521B;&#x5EFA;&#x84DD;&#x7259;&#x534F;&#x8BAE;&#x4EE3;&#x7406;&#x7C7B;</h2>
<p>&#x521B;&#x5EFA;&#x81EA;&#x5DF1;&#x7684;&#x84DD;&#x7259;&#x534F;&#x8BAE;&#x4EE3;&#x7406;&#x7C7B;<a href="../api/QNBleProtocolDelegate.html">QNBleProtocolDelegate</a>&#xFF0C;&#x5E76;&#x5B9E;&#x73B0;&#x5B83;&#x7684;&#x5168;&#x90E8;&#x65B9;&#x6CD5;&#x3002;&#x5177;&#x4F53;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x6211;&#x4EEC;&#x7684;<strong>Demo</strong></p>
<h2 id="&#x4E09;&#x3001;&#x521B;&#x5EFA;&#x84DD;&#x7259;&#x534F;&#x8BAE;&#x5904;&#x7406;&#x7C7B;">&#x4E09;&#x3001;&#x521B;&#x5EFA;&#x84DD;&#x7259;&#x534F;&#x8BAE;&#x5904;&#x7406;&#x7C7B;</h2>
<p>&#x4F7F;&#x7528;<a href="../api/QNBleApi.html#buildprotocolhandler">QNBleApi.buildProtocolHandler</a>&#x521B;&#x5EFA;<a href="../api/QNBleProtocolHandler.html">&#x534F;&#x8BAE;&#x5904;&#x7406;&#x7C7B; QNBleProtocolHandler</a></p>
<h2 id="&#x56DB;&#x3001;&#x81EA;&#x884C;&#x8FDE;&#x63A5;&#x84DD;&#x7259;">&#x56DB;&#x3001;&#x81EA;&#x884C;&#x8FDE;&#x63A5;&#x84DD;&#x7259;</h2>
<p>&#x4F7F;&#x7528;&#x7CFB;&#x7EDF;API&#x6216;&#x81EA;&#x5DF1;&#x7684;&#x84DD;&#x7259;&#x6846;&#x67B6;&#x7684;&#x8FDE;&#x63A5;&#x8BBE;&#x5907;&#x3002;</p>
<p>&#x8BE5;&#x90E8;&#x5206;&#x7684;&#x903B;&#x8F91;&#x662F;&#x7531;APP&#x81EA;&#x884C;&#x5904;&#x7406;</p>
<h2 id="&#x4E94;&#x3001;&#x53D1;&#x73B0;&#x670D;&#x52A1;&#x3001;&#x4F7F;&#x80FD;&#x7279;&#x5F81;&#x503C;">&#x4E94;&#x3001;&#x53D1;&#x73B0;&#x670D;&#x52A1;&#x3001;&#x4F7F;&#x80FD;&#x7279;&#x5F81;&#x503C;</h2>
<p>&#x6211;&#x4EEC;&#x7684;&#x79E4;&#x4F7F;&#x7528;&#x4E86;&#x4E24;&#x5957;&#x670D;&#x52A1;&#xFF0C;&#x4E00;&#x4E2A;&#x8BBE;&#x5907;&#x53EA;&#x4F1A;&#x5305;&#x542B;&#x5176;&#x4E2D;&#x4E00;&#x5957;&#x3002;APP&#x9700;&#x8981;&#x904D;&#x5386;&#x6240;&#x6709;&#x670D;&#x52A1;&#x627E;&#x5230;&#x5176;&#x4E2D;&#x4E00;&#x5957;&#x7684;&#x670D;&#x52A1;ID&#xFF0C;&#x627E;&#x5230;&#x4E00;&#x5957;&#x7684;&#xFF0C;&#x5C31;&#x6309;&#x7167;&#x4E0B;&#x8868;&#x4E2D;&#x7684;&#x7279;&#x5F81;&#x503C;&#xFF0C;&#x628A;&#x9700;&#x8981;&#x56DE;&#x8C03;&#x6570;&#x636E;&#x7684;&#x7279;&#x5F81;&#x503C;&#x90FD;&#x4F7F;&#x80FD;&#x3002;</p>
<p>&#x4F7F;&#x80FD;&#x7279;&#x5F81;&#x503C;&#x540E;&#xFF0C;&#x8C03;&#x7528;<a href="../api/QNBleProtocolHandler.html">QNBleProtocolHandler</a>&#x7684;<code>prepare</code>&#xFF0C;&#x5E76;&#x4F20;&#x9012;&#x4F7F;&#x7528;&#x7684;&#x670D;&#x52A1;&#x7684;UUID</p>
<h3 id="&#x7B2C;&#x4E00;&#x5957;">&#x7B2C;&#x4E00;&#x5957;</h3>
<p>&#x670D;&#x52A1;ID&#x4E3A;&#xFF1A;<code>FFE0</code>
&#x5728;&#x5176;&#x4E0B;&#x9762;&#x7528;&#x5230;&#x597D;&#x4E9B;&#x7279;&#x5F81;&#x503C;&#xFF0C;&#x5206;&#x522B;&#x5982;&#x4E0B;&#xFF1A;</p>
<table>
<thead>
<tr>
<th style="text-align:left">UUID</th>
<th style="text-align:left">&#x5C5E;&#x6027;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">FFE1</td>
<td style="text-align:left">Notify</td>
<td style="text-align:left">&#x4E3B;&#x8981;&#x7684;&#x6570;&#x636E;&#x56DE;&#x8C03;&#x7279;&#x5F81;&#x503C;</td>
</tr>
<tr>
<td style="text-align:left">FFE3</td>
<td style="text-align:left">Write</td>
<td style="text-align:left">&#x4E3B;&#x8981;&#x7684;&#x6570;&#x636E;&#x5199;&#x5165;&#x7279;&#x5F81;&#x503C;</td>
</tr>
<tr>
<td style="text-align:left">FFE2</td>
<td style="text-align:left">Indicate</td>
<td style="text-align:left">&#x6B21;&#x8981;&#x7684;&#x6570;&#x636E;&#x56DE;&#x8C03;&#x7279;&#x5F81;&#x503C;&#xFF0C;&#x6CE8;&#x610F;&#x8FD9;&#x4E2A;&#x7684;&#x5C5E;&#x6027;&#x662F;Indicate&#xFF0C;&#x5B89;&#x5353;&#x65B9;&#x9762;&#x7684;&#x4F7F;&#x80FD;&#x53EF;&#x80FD;&#x4F1A;&#x6709;&#x70B9;&#x5DEE;&#x522B;</td>
</tr>
<tr>
<td style="text-align:left">FFE4</td>
<td style="text-align:left">Write</td>
<td style="text-align:left">&#x6B21;&#x8981;&#x7684;&#x6570;&#x636E;&#x56DE;&#x8C03;&#x7279;&#x5F81;&#x503C;</td>
</tr>
<tr>
<td style="text-align:left">2A19</td>
<td style="text-align:left">Read</td>
<td style="text-align:left">&#x5145;&#x7535;&#x79E4;&#x7535;&#x91CF;&#x7279;&#x5F81;&#x503C;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>&#x8FD9;&#x91CC;&#x7279;&#x5F81;&#x503C;&#x7684;UUID&#x53EA;&#x4EE5;32&#x4F4D;&#x7684;&#x5F62;&#x5F0F;&#x63D0;&#x4F9B;&#xFF0C;&#x5B89;&#x5353;&#x9700;&#x8981;&#x4F7F;&#x7528;128&#x4F4D;&#x7684;&#xFF0C;&#x5219;&#x81EA;&#x884C;&#x62FC;&#x63A5;<br>
&#x6BD4;&#x5982; FFE0 &#x7684;128&#x4F4D;&#x662F;&#xFF1A;0000ffe0-0000-1000-8000-00805f9b34fb </p>
</blockquote>
<h3 id="&#x7B2C;&#x4E8C;&#x5957;">&#x7B2C;&#x4E8C;&#x5957;</h3>
<p>&#x670D;&#x52A1;ID&#x4E3A;&#xFF1A;<code>FFF0</code>
&#x5728;&#x5176;&#x4E0B;&#x9762;&#x53EA;&#x6709;&#x4E24;&#x4E2A;&#x7279;&#x5F81;&#x503C;&#xFF0C;&#x4E00;&#x4E2A;&#x7528;&#x6765;&#x6570;&#x636E;&#x56DE;&#x8C03;&#xFF0C;&#x4E00;&#x4E2A;&#x5199;&#x5165;&#x6570;&#x636E;</p>
<table>
<thead>
<tr>
<th style="text-align:left">UUID</th>
<th style="text-align:left">&#x5C5E;&#x6027;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">FFF1</td>
<td style="text-align:left">Notify</td>
<td style="text-align:left">&#x6570;&#x636E;&#x56DE;&#x8C03;&#x7279;&#x5F81;&#x503C;</td>
</tr>
<tr>
<td style="text-align:left">FFF2</td>
<td style="text-align:left">Write</td>
<td style="text-align:left">&#x6570;&#x636E;&#x5199;&#x5165;&#x7279;&#x5F81;&#x503C;</td>
</tr>
<tr>
<td style="text-align:left">2A19</td>
<td style="text-align:left">Read</td>
<td style="text-align:left">&#x5145;&#x7535;&#x79E4;&#x7535;&#x91CF;&#x7279;&#x5F81;&#x503C;</td>
</tr>
</tbody>
</table>
<h2 id="&#x6570;&#x636E;&#x4EA4;&#x4E92;">&#x6570;&#x636E;&#x4EA4;&#x4E92;</h2>
<p>&#x4F7F;&#x80FD;&#x7279;&#x5F81;&#x503C;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x6536;&#x5230;&#x79E4;&#x4E0A;&#x4F20;&#x7684;&#x6570;&#x636E;&#x3002;</p>
<p>APP&#x6536;&#x5230;&#x79E4;&#x7AEF;&#x7684;&#x56DE;&#x8C03;&#x6570;&#x636E;&#x540E;&#xFF0C;&#x901A;&#x8FC7;&#x65B9;&#x6CD5;<a href="../api/QNBleProtocolHandler.html#ongetbledata">QNBleProtocolHandler.onGetBleData</a>&#x53D1;&#x7ED9;SDK&#x8FDB;&#x884C;&#x89E3;&#x6790;&#xFF0C;&#x89E3;&#x6790;&#x7684;&#x6570;&#x636E;&#x4F1A;&#x901A;&#x8FC7;<a href="../api/QNScaleDataListener.html">QNScaleDataListener</a>&#x56DE;&#x8C03;&#x3002;</p>
<p>&#x53E6;&#x5916;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x5199;&#x5165;&#x6570;&#x636E;&#xFF0C;&#x5219;&#x4F1A;&#x901A;&#x8FC7;<a href="../api/QNBleProtocolDelegate.html#writecharacteristicvalue">QNBleProtocolDelegate.writeCharacteristicValue</a>&#xFF0C;&#x8BA9;APP&#x4EE3;&#x4E3A;&#x5199;&#x5165;&#x3002;</p>
<h2 id="&#x6D4B;&#x91CF;&#x5B8C;&#x6210;">&#x6D4B;&#x91CF;&#x5B8C;&#x6210;</h2>
<p>&#x6D4B;&#x91CF;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x4F1A;&#x901A;&#x8FC7;<a href="../api/QNScaleDataListener.html">QNScaleDataListener</a>&#x56DE;&#x8C03;&#x5B8C;&#x6574;&#x6570;&#x636E;&#xFF0C;&#x4E4B;&#x540E;&#x79E4;&#x7AEF;&#x4F1A;&#x4E3B;&#x52A8;&#x65AD;&#x5F00;&#x8FDE;&#x63A5;&#x3002;</p>
<p>&#x4E0B;&#x6B21;&#x8FDE;&#x63A5;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x9700;&#x8981;&#x91CD;&#x65B0;&#x521B;&#x5EFA;<a href="../api/QNBleProtocolDelegate.html">QNBleProtocolDelegate</a>&#x548C;<a href="../api/QNBleProtocolHandler.html">QNBleProtocolHandler</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="ble_scale.html" class="navigation navigation-prev " aria-label="Previous page: 普通蓝牙秤">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="kitchen_scale.html" class="navigation navigation-next " aria-label="Next page: 厨房秤">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"普通蓝牙秤-自主管理蓝牙","level":"1.4.2","depth":2,"next":{"title":"厨房秤","level":"1.4.3","depth":2,"path":"flow/kitchen_scale.md","ref":"flow/kitchen_scale.md","articles":[]},"previous":{"title":"普通蓝牙秤","level":"1.4.1","depth":2,"path":"flow/ble_scale.md","ref":"flow/ble_scale.md","articles":[]},"dir":"ltr"},"config":{"plugins":["mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"mermaid-gb3":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh","gitbook":"*"},"file":{"path":"flow/ble_scale_custom_connect.md","mtime":"2022-03-01T12:53:11.381Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-01-16T11:02:39.181Z"},"basePath":"..","book":{"language":"zh"}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

